package com.megvii.koala.net.visitor;

import com.megvii.corelib.net.RequestParam;
import com.megvii.corelib.net.request.MegviiRequest;
import com.megvii.koala.constance.SubjectType;
import com.megvii.koala.net.Commands;

/**
 * Created by linyue on 15/12/29.
 */
public class AddVisitorRequest implements MegviiRequest
{
    @RequestParam
    public String name;

    @RequestParam
    public int subject_type;

    @RequestParam
    public int start_time;

    @RequestParam
    public int end_time;

    @RequestParam
    public int purpose;

    @RequestParam
    public String description;

    @RequestParam
    public String remark;

    public AddVisitorRequest(String name, boolean isVip, int start_time, int end_time, int purpose,
            String description, String remark)
    {
        super();
        this.name = name;
        this.subject_type = isVip ? SubjectType.VISITOR_VIP : SubjectType.VISITOR;
        this.start_time = start_time;
        this.end_time = end_time;
        this.purpose = purpose;
        this.description = description;
        this.remark = remark;
    }

    @Override
    public String getCommand()
    {
        return Commands.ADD_VISITOR;
    }
}
